Replace function

Syntax
Replace find-text, in-text, replace-text [, replace-all]

Description
Returns the string procured by finding find-text in in-text and replacing it with replace-text. If find-text is not found, it returns in-text unchanged.

The function replaces only the first occurrence of find-text, not all occurrences. To replace all occurrences, pass 1 (True) in the optional replace-all parameter.

Examples
// Types "Snippy"
Type Replace "oo", "Snoopy", "ip"

// Types "Hellothere"
Type Replace " ", "Hello there", ""

// Types "Middiddippi"
Type Replace "iss", "Mississippi", "idd", 1

See Also
Find function